package com.jwtproject.bootserver.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jwtproject.bootserver.mapper.UserMapper;
import com.jwtproject.bootserver.model.User;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.jwtproject.bootserver.model.Role;
import com.jwtproject.bootserver.mapper.RoleMapper;
import com.jwtproject.bootserver.service.RoleService;

import java.util.List;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService{


    @Override
    public List<Role> getRoleListByUser(User user) {
        return this.baseMapper.getRoleListByUser(user);
    }
}
